<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Engine Benchmark</title>
  </head>
  <body>
    <div id="app">
      <!-- Preact app will be mounted here -->
    </div>

    <!-- Load the bundled application -->
    <script type="module" src="/src/main.tsx"></script>

    <!-- Load polyfills for older browsers -->
    <script>
      // Add any necessary polyfills here
      if (!window.Promise) {
        document.write(
          '<script src="https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js"><\/script>',
        );
      }

      // Check for requestAnimationFrame support
      if (!window.requestAnimationFrame) {
        document.write(
          '<script src="https://cdnjs.cloudflare.com/ajax/libs/raf/3.4.1/raf.min.js"><\/script>',
        );
      }
    </script>
  </body>
</html>
